home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 125
/
Freelog_MarsAvril2015_No125.iso
/
Musique
/
Quod Libet
/
quodlibet-3.3.0-installer.exe
/
bin
/
gi
/
importer.pyc
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2014-12-31
|
1KB
|
41 lines
# Source Generated with Decompyle++
# File: in.pyc (Python 2.7)
from __future__ import absolute_import
import sys
from _gi import Repository
from module import DynamicModule
repository = Repository.get_default()
modules = { }
class DynamicImporter(object):
def __init__(self, path):
self.path = path
def find_module(self, fullname, path = None):
if not fullname.startswith(self.path):
return None
(path, namespace) = None.rsplit('.', 1)
if path != self.path:
return None
if None.enumerate_versions(namespace):
return self
raise None('cannot import name %s, introspection typelib not found' % namespace)
def load_module(self, fullname):
if fullname in sys.modules:
return sys.modules[fullname]
(path, namespace) = None.rsplit('.', 1)
dynamic_module = DynamicModule(namespace)
modules[namespace] = dynamic_module
dynamic_module.__file__ = '<%s>' % fullname
dynamic_module.__loader__ = self
sys.modules[fullname] = dynamic_module
dynamic_module._load()
return dynamic_module